<template>
  <div class="recommends">
    <div v-for="item in recommends" class="rec-item">
      <a :href="item.link">
        <img :src="item.image" class="image" />
        <div>{{ item.title }}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: "Recommend",
  components: {},
  props: {
    recommends: {
      type: Array,
      default: {},
    },
  },
  mounted() {},
  methods: {},
};
</script>

<style lang="css" scoped>
.recommends {
  width: 100vw;
  height: 25vw;
  justify-content: space-around;
  display: flex;
  margin: 15px 0 15px 0;
}
.rec-item{
  text-align: center;
  width: 20%;
}
.rec-item img{
  width: 100%;
  height: auto;
}
.rec-item > a >div{
  margin-top:5px;
  font-size: 14px;
}
</style>